#include <Python.h>

static PyObject* my_c_string(PyObject* self, PyObject* args) {
    return Py_BuildValue("s", "Hello from C module!");
}

static PyMethodDef MyMethods[] = {
    {"my_c_string", my_c_string, METH_NOARGS, "Return a string from C module."},
    {NULL, NULL, 0, NULL}
};

static struct PyModuleDef c_module = {
    PyModuleDef_HEAD_INIT,
    "my_c_string",
    "A C extension module",
    -1,
    MyMethods
};

PyMODINIT_FUNC PyInit_my_c_string(void) {
    return PyModule_Create(&c_module);
} 